So far we seen python programs right which as some statements and conditions to be executed the program. The Control statements is used to control the flow of execution . In which computer can order to execute the statements . the python execute the statement in order , as Example in the below
Print("This is darshan")
print("How may i help you")
print("Iam a web developer")
In above example the python Execute the statements in sequential order output:-
This is darshan
How may i help you
Iam web developer
There are three types of control flow statements in python
The in which computer can take decision then which statement is execute first , based on certain conditions
The Decision Making statements is also called selection, branching statements
Decision statements
The python having the loop statement which execute the group of statements relatively until the loop condition satisfied.
The Loop statements is also called Iteration statements . repetitive process
Loops
The Jump Control flow statement is used to jump the control from on statement to another statement by using break and continue statements
Jump Statements